package com.course.domain.pojo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author 小杰大人
 * @since 2025-02-23
 */
@Getter
@Setter
@TableName("course_detail")
@ApiModel(value = "CourseDetail对象", description = "")
public class CourseDetail implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @TableId(value = "id")
    private Long id;

    @ApiModelProperty("课程id")
    @TableField("course_id")
    private Long courseId;

    @ApiModelProperty("标题")
    @TableField("title")
    private String title;

    @ApiModelProperty("父级id 一级分类无内容")
    @TableField("parent_id")
    private Long parentId;

    @ApiModelProperty("课程视频id")
    @TableField("media_id")
    private Long mediaId;

    @ApiModelProperty("课程顺序")
    @TableField("indexs")
    private String indexs;

    @ApiModelProperty("创建时间")
    @TableField(value = "create_time" , fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    @TableField(value = "update_time" , fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @ApiModelProperty("创建人")
    @TableField(value = "create_user" , fill = FieldFill.INSERT)
    private Long createUser;

    @ApiModelProperty("修改人")
    @TableField(value = "update_user" , fill = FieldFill.INSERT_UPDATE)
    private Long updateUser;
}
